package com.ruoyi.interview.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import javax.validation.constraints.NotBlank;

/**
 * BaseEntity: 用于封装公共字段
 * */
public class IntervInfo extends BaseEntity {
    /**序列化*/
    private static final long serialVersionUID = 1L;

    /** 面试id */
    private Long id;

    /** 面试者姓名 */
    @NotBlank(message = "面试者姓名不能为空")
    @Excel(name = "面试者姓名")
    private String interviewee;
    /** 岗位id */
    @Excel(name = "岗位id")
    private Long pId;

    /** 面试方式 */
    @Excel(name = "面试方式")
    private Long wId;

    /** 身份id 0未选择 1校招 2社招 */
    @Excel(name = "身份id 0未选择 1校招 2社招")
    private Long iId;

    /** 状态id 0通过 1进行中 2未通过 3未处理 */
    @Excel(name = "状态id 0通过 1进行中 2未通过 3未处理")
    private Integer status;

    /** 电话 */
    @Excel(name = "电话")
    private String phone;

    /** 面试时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "面试时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date userDate;

    /** 删除标记，0代表删除 */
    private Long delFlag;

    /** 文件路径 */
    @Excel(name = "文件路径")
    private String path;

    /** 学校 */
    @Excel(name = "学校")
    private String school;

    /** 反馈 */
    @Excel(name = "反馈")
    private String feedback;

    public String getFeedback() {
        return feedback;
    }

    public void setFeedback(String feedback) {
        this.feedback = feedback;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setInterviewee(String interviewee) 
    {
        this.interviewee = interviewee;
        System.out.printf("setInterviewee: ");
    }

    public String getInterviewee() 
    {
        return interviewee;
    }
    public void setpId(Long pId) 
    {
        this.pId = pId;
    }

    public Long getpId() 
    {
        return pId;
    }
    public void setwId(Long wId) 
    {
        this.wId = wId;
    }

    public Long getwId() 
    {
        return wId;
    }
    public void setiId(Long iId) 
    {
        this.iId = iId;
    }

    public Long getiId() 
    {
        return iId;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }
    public void setUserDate(Date userDate) 
    {
        this.userDate = userDate;
    }

    public Date getUserDate() 
    {
        return userDate;
    }
    public void setDelFlag(Long delFlag) 
    {
        this.delFlag = delFlag;
    }

    public Long getDelFlag() 
    {
        return delFlag;
    }
    public void setPath(String path) 
    {
        this.path = path;
    }

    public String getPath() 
    {
        return path;
    }
    public void setSchool(String school) 
    {
        this.school = school;
    }

    public String getSchool() 
    {
        return school;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("interviewee", getInterviewee())
            .append("pId", getpId())
            .append("wId", getwId())
            .append("iId", getiId())
            .append("status", getStatus())
            .append("phone", getPhone())
            .append("userDate", getUserDate())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .append("delFlag", getDelFlag())
            .append("path", getPath())
            .append("school", getSchool())
            .append("feedback", getFeedback())
            .toString();
    }
}
